<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>七夕</title>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/valentine.css" />
		<link rel="stylesheet" type="text/css" href="css/jq22.css" />
		<link rel="stylesheet" type="text/css" href="css/swiper-3.4.1.min.css" />
		<link rel="stylesheet" type="text/css" href="css/index.css" />
		<script type="text/javascript" src="js/valentine.js"></script>
		<script src="js/zepto.js"></script>
		<script type="text/javascript" src="js/touch.js"></script>

	</head>

	<body>
		<div class="wrap">
			<div class="banner">
			</div>
			<!--粉框-->

			<div class="contentB">
				<div class="contentA">
				</div>

				<div class="jindu">
					<div id="tu" style="float: left;" class="press">
						<img src="img/two.png" />
					</div>
					<div class="progressTitle">

					</div>
					<div class="progress">
						<div class="blue">

						</div>
						<div class="red">

						</div>
					</div>
					<div id="dog" style="float:right;" class="press">
						<img src="img/dog.png" />
					</div>
				</div>
				<!--别吵吵-->
				<div class="vword"></div>
				<div class="swiper-pagination">

				</div>

			</div>
			<div class="fenye">

				<div class="swiper-container">
					<div class="swiper-wrapper">
						<!--侧滑页1-->
						<div class="swiper-slide sl1">
							<div class="enaisearch">
								<div class="enaisearchword">
									恩爱战场
								</div>
								<div class="enaisearchinput">
									<img src="img/search.png" id="search" />
									<input type="text" placeholder="搜索昵称" name="" id="searchinp" class="enaiinput" />

								</div>
								<div class="searchsure" id="enaiS">
									搜索
								</div>

							</div>
							<div class="art">
								<ul class="comment_centerN">

								</ul>
							</div>

						</div>
						<!--侧滑页2-->
						<div class="swiper-slide sl2">
							
							<div class="mainintroduction">
								<div class="rule1">
									<img src="img/rule.png" />
								</div>
								<div class="bang">
									<img src="" />
								</div>
								<div class="tophot">
									<img src="img/TOPHOT.png" />
								</div>
							</div>
							<div class="top">
								<div class="topkuang"></div>
								<div class="top6">
									<img src="img/TOP6.png" />
								</div>
							</div>
							<!--top6-->
							<div class="art">
								<ul class="comment_center">

								</ul>
							</div>

						</div>
						<!--侧滑页3-->
						<div class="swiper-slide sl3">
							<div class="danshensearch">
								<div class="danshensearchword">
									单身战场
								</div>
								<div class="danshensearchinput">
									<img src="img/search.png" id="search2" />
									<input type="text" name="" id="searchinp2" class="dansheninput" placeholder="搜索昵称" />

								</div>
								<div class="danshensearchsure" id="danS">
									搜索
								</div>

							</div>
							<div class="art">
								<ul class="comment_centerD">

								</ul>
							</div>

						</div>
					</div>
				</div>
			</div>
			<div class="fatieBtn"></div>
			<div class="black">
				<img src="img/two.png" />
				<span id="sp">

				</span>
			</div>

		</div>

		<script type="text/javascript" src="js/jquery-1.12.0.min.js"></script>
		<script type="text/javascript" src="js/swiper-3.4.1.min.js"></script>
		<script type="text/javascript" src="js/va.js"></script>

		<script type="text/javascript">
						var userid = document.URL.split("?")[1].split("&")[0].split("=")[1];

			$(document).ready(function() {

//				var userid = 10;
				//
				var pinHt = "";
				var pinHttt = "";

				var pinHtN = "";
				var pinHtttN = "";
				var pinHtN2 = "";
				var pinHtttN2 = "";

				var pinHtD = "";
				var pinHtttD = "";
				var pinHtD2 = "";
				var pinHtttD2 = "";
				//
				//
				//
				//				//进入页面请求接口


				//点赞
				$('.comment_center,.comment_centerN,.comment_centerD').on('touchend', '.commentPointzan', function(ev) {
					var
						ev = ev || window.event,
						oTarget = ev.srcElement || ev.target,
						thumbup = $(this).attr("thumbup");


					//										console.log(thumbup);
					if(thumbup == 0) {
						var commentId = $(this).attr("commentId");
						$.ajax({
							url: 'http://test.onetuu.com/Valentines/user_thumb', //跨域到http://www.wp.com，另，http://test.com也算跨域
							type: 'post', //jsonp 类型下只能使用GET,不能用POST,这里不写默认为GET
							dataType: 'json', //指定为jsonp类型
							data: {
								"userid": userid,
								"commentId": commentId,
							},
							success: function(data) {
								console.log(data);
								if(data.eligibility == 1) {
									$(".commentPointzan[commentId=" + commentId + "]").find("img").attr("src", "img/zan2.png");
									$(".commentPointzan[commentId=" + commentId + "]").find("span").html(data.dznum);
								}

							}
						});

					}

				});

				$('.comment_center,.comment_centerN,.comment_centerD').on('touchend', '.commentPointall', function() {
					Name = $(this).attr("name");
					commentId = $(this).attr("commentId");
					window.location.href = "ping1.html?userid=" + userid + "&commentId=" + commentId + "&name=" + Name;
				});

				//				}
				//				ajaxV();

				var mySwiper = new Swiper('.swiper-container', {
					pagination: '.swiper-pagination',
					initialSlide: 1,
					paginationClickable: true,
					onSlideChangeStart: function(swiper) {
						if(swiper.activeIndex == 0) {
							$(".fatieBtn").show();
							$(".fatieBtn").attr("id", "1");
							$(".contentB").css("background", "url(img/doublebg.png)no-repeat");
							$(".contentB").css("background-size", "100% 6rem");
							$(".contentA").css("background", "url(img/contentA.png)no-repeat");
							$(".contentA").css("background-size", "100% 100%");
							$(".banner").css("background", "url(img/banner1.png)no-repeat");
							$(".banner").css("background-size", "100% 100%");
							$(".contentB .swiper-pagination-bullet:nth-of-type(1)").css("display","none");
							$(".contentB .swiper-pagination-bullet:nth-of-type(3)").css("display","none");
							$(".contentB .swiper-pagination-bullet:nth-of-type(2)").css("background","url(img/doublezhu.png)no-repeat");
							$(".contentB .swiper-pagination-bullet:nth-of-type(2)").css("background-size","100% 100%");
							$(".contentB .swiper-pagination-bullet:nth-of-type(2)").css("display","block");

							$.ajax({

								url: 'http://test.onetuu.com/Valentines/leftData', //跨域到http://www.wp.com，另，http://test.com也算跨域
								type: 'post', //jsonp 类型下只能使用GET,不能用POST,这里不写默认为GET
								dataType: 'json', //指定为jsonp类型
								data: {
									"userid": userid
								},
								success: function(data) {
									console.log(data);
									if(data.eligibility == 1) {


										//恩爱战场
										for(var i = 0; i < data.couples.length; i++) {
											//点赞

											if(data.couples[i].duihua == null) {

												pinHtN += `<li class="comment_li">
												<div class="comment_li_tou">
													<div class="commenttouxiang">
														<img src="` + data.couples[i].avatarDomain + `" />
													</div>
													<div class="commentnicheng">
														<div class="commentname">
															` + data.couples[i].name + `
														</div>
														<div class="commenttime">
															` + data.couples[i].create + `
														</div>
													</div>
												</div>
												<div class="commentimg">
													<img src="` + data.couples[i].img + `" /><span></span>
												</div>
												<div class="commentword">
													` + data.couples[i].discourse + `
												</div>
												<hr />
												<div class="commentPoint">
													<div class="commentPointzan" thumbup="` + data.couples[i].thumbup + `" commentId="` + data.couples[i].commentId + `">
														<img src="img/zan.png" class="` + data.couples[i].thumbup + `"/>
														<span>
															` + data.couples[i].dznum + `
														</span>
													</div>
													<div class="commentPointall" id="couplesping" commentId="` + data.couples[i].commentId + `" name="` + data.couples[i].name + `">
														<img src="img/zong.png" />
														<span>
															` + data.couples[i].plnum + `
														</span>
													</div>

												</div>
												<div class="pinglun_huifu">
													<ul class="pinglun_huifu_neirong" style="display:none"  commentId="` + data.couples[i].commentId + `">

													</ul>

												</div>

											</li>`
											} else if(data.couples[i].duihua.length > 0) {
												for(var j = 0; j < data.couples[i].duihua.length; j++) {
													pinHtttN += `<li>
															<div class="pinglun_huifu_neirong_name" style="line-hight:.2rem">
																	<em style="color:#6db0ff">
																		` + data.couples[i].duihua[j].name + `
																	</em>：
																		` + data.couples[i].duihua[j].discourse + `
																			
															</div>

														</li>`
												}

												pinHtN += `<li class="comment_li">
												<div class="comment_li_tou">
													<div class="commenttouxiang">
														<img src="` + data.couples[i].avatarDomain + `" />
													</div>
													<div class="commentnicheng">
														<div class="commentname">
															` + data.couples[i].name + `
														</div>
														<div class="commenttime">
															` + data.couples[i].create + `
														</div>
													</div>
												</div>
												<div class="commentimg">
													<img src="` + data.couples[i].img + `" /><span></span>
												</div>
												<div class="commentword">
													` + data.couples[i].discourse + `
												</div>
												<hr />
												<div class="commentPoint">
													<div class="commentPointzan" thumbup="` + data.couples[i].thumbup + `" commentId="` + data.couples[i].commentId + `">
														<img src="img/zan.png" class="` + data.couples[i].thumbup + `"/>
														<span>
															` + data.couples[i].dznum + `
														</span>
													</div>
													<div class="commentPointall" id="couplesping" commentId="` + data.couples[i].commentId + `" name="` + data.couples[i].name + `">
														<img src="img/zong.png" />
														<span>
															` + data.couples[i].plnum + `
														</span>
													</div>

												</div>
												<div class="pinglun_huifu">
													<ul class="pinglun_huifu_neirong" commentId="` + data.couples[i].commentId + `">
														` + pinHtttN + `
													</ul>
													<div class="showmore1">查看更多&gt;</div>
												</div>
											</li>`
											}
											pinHtttN = "";
										}
										$(".comment_centerN").append(pinHtN);


										$(".1").attr("src", "img/zan2.png");
										//

										$(".commentword").on("touchend", function() {
											$(this).css("display", "block");
											$(this).css("-webkit-line-clamp", "initial");
										});

										$(".showmore1,.showmore").on("touchend", function() {
											$(this).parent().css("display", "block");
											$(this).parent().css("-webkit-line-clamp", "initial");
											$(this).css("display", "none");

										});

										//
										$(".commentimg").on("click", function() {

											var thisImg = $(this).find("img").attr("src");
											$(".black").show();
											$(".black").find("img").attr("src", thisImg);
											$(".black").find("img").on("click", function() {
												$(".black").hide();
											});

										});
										$(".black").on("click", function() {
											$(".black").hide();
										});

									} else {
										alert("系统错误！");
									}

								}

							});

							$(window).unbind('scroll');
							$(window).scrollTop("0");
							$(window).scroll(function() {
								console.log("enai :" + $(".comment_centerN").outerHeight());
								var h = $(".enaisearch").outerHeight();
								$(".swiper-container").height($(".comment_centerN").height() + h);
							});
						} else if(swiper.activeIndex == 1) {
							$(".fatieBtn").hide();
							$(".contentB").css("background", "url(img/mbg.png)no-repeat");
							$(".contentB").css("background-size", "100% 17rem");
							$(".contentA").css("background", "url(img/contentA.png)no-repeat");
							$(".contentA").css("background-size", "100% 100%");
							$(".banner").css("background", "url(img/banner.png)no-repeat");
							$(".banner").css("background-size", "100% 100%");
							$(".contentB .swiper-pagination-bullet:nth-of-type(1)").css("display","inline-block");
							$(".contentB .swiper-pagination-bullet:nth-of-type(3)").css("display","inline-block");
							$(".contentB .swiper-pagination-bullet:nth-of-type(2)").css("display","none");

							$.ajax({
								url: 'http://test.onetuu.com/Valentines/turntable', //跨域到http://www.wp.com，另，http://test.com也算跨域
								type: 'post', //jsonp 类型下只能使用GET,不能用POST,这里不写默认为GET
								dataType: 'json', //指定为jsonp类型
								data: {
									"userid": userid
								},
								success: function(data) {
									console.log(data);
									if(data.eligibility == 1) {
										var a = data.couplesnum;
										var b = data.specialnum;
										var newLeft = a / (a + b) * 2.3;
										if(newLeft >= 2.1) {
											$(".red").animate({ width: "2.1rem" }, 1000);
										} else if(newLeft <= 0.25) {
											$(".red").animate({ width: ".25rem" }, 1000);
										} else {
											$(".red").animate({ width: newLeft + "rem" }, 1000);

										}
										//上榜用户图片
										$(".bang img").attr("src", data.top[0].img);

										//排行top6
										for(var i = 0; i < data.top.length; i++) {

											if(data.top[i].duihua == null) {
												pinHt += `<li class="comment_li">
															<div class="comment_li_tou">
																<div class="commenttouxiang">
																	<img src="` + data.top[i].avatarDomain + `" />
																</div>
																<div class="commentnicheng">
																	<div class="commentname">
																		` + data.top[i].name + `
																	</div>
																	<div class="commenttime">
																		` + data.top[i].create + `
																	</div>
																</div>
															</div>
															<div class="commentimg">
																<img src="` + data.top[i].img + `" /><span></span>
															</div>
															<div class="commentword">
																` + data.top[i].discourse + `
															</div>
															<hr />
															<div class="commentPoint">
																<div class="commentPointzan" thumbup="` + data.top[i].thumbup + `" commentId="` + data.top[i].commentId + `">
																	<img src="img/zan.png" class="` + data.top[i].thumbup + `"/>
																	<span>
																		` + data.top[i].dznum + `
																	</span>
																</div>
																<div class="commentPointall" id="topping" commentId="` + data.top[i].commentId + `" name="` + data.top[i].name + `">
																	<img src="img/zong.png" />
																	<span>
																		` + data.top[i].plnum + `
																	</span>
																</div>

															</div>
															<div class="pinglun_huifu" >
																<ul class="pinglun_huifu_neirong" style="display:none" commentId="` + data.top[i].commentId + `" >

																</ul>
															</div>

														</li>`
											} else if(data.top[i].duihua.length > 0) {
												for(var j = 0; j < data.top[i].duihua.length; j++) {
													pinHttt += `<li>
																		<div class="pinglun_huifu_neirong_name" style="line-hight:.2rem">
																			<em style="color:#6db0ff">
																				` + data.top[i].duihua[j].name + `
																			</em>：
																				` + data.top[i].duihua[j].discourse + `
																			
																		</div>

																	</li>`
												}

												pinHt += `<li class="comment_li">
															<div class="comment_li_tou">
																<div class="commenttouxiang">
																	<img src="` + data.top[i].avatarDomain + `" />
																</div>
																<div class="commentnicheng">
																	<div class="commentname">
																		` + data.top[i].name + `
																	</div>
																	<div class="commenttime">
																		` + data.top[i].create + `
																	</div>
																</div>
															</div>
															<div class="commentimg">
																<img src="` + data.top[i].img + `" /><span></span>
															</div>
															<div class="commentword">
																` + data.top[i].discourse + `
															</div>
															<hr />
															<div class="commentPoint">
																<div class="commentPointzan" thumbup="` + data.top[i].thumbup + `" commentId="` + data.top[i].commentId + `">
																	<img src="img/zan.png" class="` + data.top[i].thumbup + `"/>
																	<span>
																		` + data.top[i].dznum + `
																	</span>
																</div>
																<div class="commentPointall" id="topping" commentId="` + data.top[i].commentId + `" name="` + data.top[i].name + `">
																	<img src="img/zong.png" />
																	<span>
																		` + data.top[i].plnum + `
																	</span>
																</div>

															</div>
															<div class="pinglun_huifu">
																<ul class="pinglun_huifu_neirong" commentId="` + data.top[i].commentId + `">
																	` + pinHttt + `
																</ul>
																<div class="showmore">查看更多&gt;</div>
															</div>

														</li>`
											}
											pinHttt = "";
										}
										$(".comment_center").append(pinHt);

										$(".1").attr("src", "img/zan2.png");
										//

										$(".commentword").on("touchend", function() {
											$(this).css("display", "block");
											$(this).css("-webkit-line-clamp", "initial");
										});

										$(".showmore1,.showmore").on("touchend", function() {
											$(this).parent().css("display", "block");
											$(this).parent().css("-webkit-line-clamp", "initial");
											$(this).css("display", "none");

										});

										//
										$(".commentimg").on("click", function() {

											var thisImg = $(this).find("img").attr("src");
											$(".black").show();
											$(".black").find("img").attr("src", thisImg);
											$(".black").find("img").on("click", function() {
												$(".black").hide();
											});

										});
										$(".black").on("click", function() {
											$(".black").hide();
										});

									} else {
										alert("系统错误！");
									}

								}
//								$ajaxcomplete()
							});



							$(window).unbind('scroll');
							$(window).scrollTop("0");
							$(window).scroll(function() {
								var h = $(".top").outerHeight() + $(".mainintroduction").outerHeight() + $(".swiper-pagination").outerHeight();
								console.log("top :" + $(".comment_center").outerHeight());
								$(".swiper-container").height($(".comment_center").height() + h);
							});
						} else if(swiper.activeIndex == 2) {
							$(".fatieBtn").show();
							$(".fatieBtn").attr("id", "2");
							$(".contentB").css("background", "url(img/singlebg.png)no-repeat");
							$(".contentB").css("background-size", "100% 6rem");
							$(".contentA").css("background", "url(img/contentC.png)no-repeat");
							$(".contentA").css("background-size", "100% 100%");
							$(".banner").css("background", "url(img/banner2.png)no-repeat");
							$(".banner").css("background-size", "100% 100%");
							$(".contentB .swiper-pagination-bullet:nth-of-type(1)").css("display","none");
							$(".contentB .swiper-pagination-bullet:nth-of-type(3)").css("display","none");
							$(".contentB .swiper-pagination-bullet:nth-of-type(2)").css("background","url(img/singlezhu.png)no-repeat");
							$(".contentB .swiper-pagination-bullet:nth-of-type(2)").css("background-size","100% 100%");
							$(".contentB .swiper-pagination-bullet:nth-of-type(2)").css("display","block");

							$.ajax({
								url: 'http://test.onetuu.com/Valentines/rightData', //跨域到http://www.wp.com，另，http://test.com也算跨域
								type: 'post', //jsonp 类型下只能使用GET,不能用POST,这里不写默认为GET
								dataType: 'json', //指定为jsonp类型
								data: {
									"userid": userid
								},
								success: function(data) {
									console.log(data);
									if(data.eligibility == 1) {
//

										//单身战场
										for(var i = 0; i < data.special.length; i++) {
											//点赞

											if(data.special[i].duihua == null) {

												pinHtD += `<li class="comment_li">
															<div class="comment_li_tou">
																<div class="commenttouxiang">
																	<img src="` + data.special[i].avatarDomain + `" />
																</div>
																<div class="commentnicheng">
																	<div class="commentname">
																		` + data.special[i].name + `
																	</div>
																	<div class="commenttime">
																		` + data.special[i].create + `
																	</div>
																</div>
															</div>
															<div class="commentimg">
																<img src="` + data.special[i].img + `" /><span></span>
															</div>
															<div class="commentword">
																` + data.special[i].discourse + `
															</div>
															<hr />
															<div class="commentPoint">
																<div class="commentPointzan" thumbup="` + data.special[i].thumbup + `" commentId="` + data.special[i].commentId + `">
																	<img src="img/zan.png" class="` + data.special[i].thumbup + `"/>
																	<span>
																		` + data.special[i].dznum + `
																	</span>
																</div>
																<div class="commentPointall" id="specialping" commentId="` + data.special[i].commentId + `" name="` + data.special[i].name + `">
																	<img src="img/zong.png" />
																	<span>
																		` + data.special[i].plnum + `
																	</span>
																</div>

															</div>
															<div class="pinglun_huifu" >
																<ul class="pinglun_huifu_neirong" style="display:none" commentId="` + data.special[i].commentId + `">

																</ul>
															</div>

														</li>`
											} else if(data.special[i].duihua.length > 0) {
												for(var j = 0; j < data.special[i].duihua.length; j++) {
													pinHtttD += `<li>
																		<div class="pinglun_huifu_neirong_name" style="line-hight:.2rem">
																				<em style="color:#6db0ff">
																					` + data.special[i].duihua[j].name + `
																				</em>：
																					` + data.special[i].duihua[j].discourse + `
																						
																		</div>

																	</li>`
												}

												pinHtD += `<li class="comment_li">
															<div class="comment_li_tou">
																<div class="commenttouxiang">
																	<img src="` + data.special[i].avatarDomain + `" />
																</div>
																<div class="commentnicheng">
																	<div class="commentname">
																		` + data.special[i].name + `
																	</div>
																	<div class="commenttime">
																		` + data.special[i].create + `
																	</div>
																</div>
															</div>
															<div class="commentimg">
																<img src="` + data.special[i].img + `" /><span></span>
															</div>
															<div class="commentword">
																` + data.special[i].discourse + `
															</div>
															<hr />
															<div class="commentPoint">
																<div class="commentPointzan" thumbup="` + data.special[i].thumbup + `" commentId="` + data.special[i].commentId + `">
																	<img src="img/zan.png" class="` + data.special[i].thumbup + `"/>
																	<span>
																		` + data.special[i].dznum + `
																	</span>
																</div>
																<div class="commentPointall" id="specialping" commentId="` + data.special[i].commentId + `" name="` + data.special[i].name + `">
																	<img src="img/zong.png" />
																	<span>
																		` + data.special[i].plnum + `
																	</span>
																</div>
			//
															</div>
															<div class="pinglun_huifu">
																<ul class="pinglun_huifu_neirong" commentId="` + data.special[i].commentId + `">
																	` + pinHtttD + `
																</ul>
																<div class="showmore1">查看更多&gt;</div>
															</div>

														</li>`
											}
											pinHtttD = "";
										}
										$(".comment_centerD").append(pinHtD);
										$(".1").attr("src", "img/zan2.png");
										//

										$(".commentword").on("touchend", function() {
											$(this).css("display", "block");
											$(this).css("-webkit-line-clamp", "initial");
										});

										$(".showmore1,.showmore").on("touchend", function() {
											$(this).parent().css("display", "block");
											$(this).parent().css("-webkit-line-clamp", "initial");
											$(this).css("display", "none");

										});

										//
										$(".commentimg").on("click", function() {

											var thisImg = $(this).find("img").attr("src");
											$(".black").show();
											$(".black").find("img").attr("src", thisImg);
											$(".black").find("img").on("click", function() {
												$(".black").hide();
											});

										});
										$(".black").on("click", function() {
											$(".black").hide();
										});
										setTimeout(function(){
											for(var slo = 0;slo<$("commentimg img").length;slo++){
												$("commentimg img").eq(slo).css({"margin-top" : -$("commentimg img").eq(slo).height()/2+"px"})
											}
										},2000);

									} else {
										alert("系统错误！");
									}

								}
							});

							$(window).unbind('scroll');
							$(window).scrollTop("0");
							$(window).scroll(function() {
								var h = $(".danshensearch").outerHeight();
								$(".swiper-container").height($(".comment_centerD").height() + h);
							});
						}
					}
				});
				

				var inp = document.querySelector('#searchinp');
				var inp2 = document.querySelector('#searchinp2');
				var bodyHeight = document.body.offsetHeight;
				inp.onclick = function(ev) {
					document.querySelector('body').style.height = '99999999999999999px';
					inp.style.position = 'static';
					setTimeout(function() {
						document.body.scrollTop = document.documentElement.scrollTop = inp.getBoundingClientRect().top + pageYOffset - 5;
					}, 50);
					window.addEventListener('touchmove', fn, false);
				}

				inp.onblur = function() {
					document.querySelector('body').style.height = "auto"
					document.querySelector('body').removeAttribute('style')
					window.removeEventListener('touchmove', fn, false)
				}
				inp2.onclick = function(ev) {
					document.querySelector('body').style.height = '99999999999999999px';
					inp2.style.position = 'static';
					setTimeout(function() {
						document.body.scrollTop = document.documentElement.scrollTop = inp2.getBoundingClientRect().top + pageYOffset - 5;
					}, 50);
					window.addEventListener('touchmove', fn, false);
				}

				inp2.onblur = function() {
					document.querySelector('body').style.height = "auto"
					document.querySelector('body').removeAttribute('style')
					window.removeEventListener('touchmove', fn, false)
				}

				//触摸取消blur
				function fn(ev) {
					var _target = ev.target || ev.srcElement;
					if(_target.nodeName != 'INPUT') {
						inp.blur();
					}
					ev.preventDefault()
				};

				//发帖btn
				$(".fatieBtn").on("touchend", function() {
					var type = $(".fatieBtn").attr("id");
					window.location.href = "ping.html?userid=" + userid + "&type=" + type;
				});

			});
		</script>
	</body>

</html>
